import request from "@/api/request";

const url = "/system/sys/dept"

export function deptList(query) {
    return request({
        url: `${url}/deptTree`,
        method: 'get',
        params: query
    })
}

export function save(dept) {
    return request.post(`${url}`, dept)
}

export function updateById(dept) {
    return request.put(`${url}`, dept)
}

export function removeById(id) {
    return request.delete(`${url}?idList=${id}`)
}

